package com.fanshuai.controller;

import com.fanshuai.service.ServiceA;
import com.fanshuai.service.ServiceB;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ControllerA {
    @Resource
    private ServiceA serviceA;
    @Resource
    private ServiceB serviceB;

    @RequestMapping(value = "/a", method = RequestMethod.GET)
    public String A() {
        return serviceA.A();
    }

    @RequestMapping(value = "/b", method = RequestMethod.GET)
    public String B() {
        return serviceB.B();
    }
}
